<?php

mysql_connect("localhost", "texadnjq_piccms", "123456") or die("Could not connect: " . mysql_error());

mysql_query("SET NAMES UTF8");
mysql_query("set character_set_client=utf8"); 
mysql_query("set character_set_results=utf8");

mysql_select_db("texadnjq_piccms");

$rs = mysql_query("SELECT * FROM pc_cate where status=1 order by oid desc");
$items = array();
while($row = mysql_fetch_object($rs)){
	array_push($items, $row);
}
$result["rows"] = $items;

echo json_encode($result);